package dubbo.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import service.HelloService;

/**
 * @author qdf
 * @date 2019/11/7 22:27
 */
@RestController
public class HelloController {
    @Reference
    private HelloService helloService;

    @RequestMapping("hello")
    public  String hello(){
        return helloService.sayHello("123");
    }
}
